import request from '@/utils/request'

// 查询首页热门院校数据
export const getParentList = (params) => {
  return request({
    url: '/major/parent',
    method: 'get',
    params
  });
};

//获取专业列表
export const getMajorList = (params) => {
    return request({
      url: '/major',
      method: 'get',
      params
    });
  };


  //获取专业详情
export const getMajorDetail= (id) => {
  return request({
    url: `major/${id}`,
    method: 'get',
  });
};